<!-- Note: All the codes inside the <table> tag are important for restoring the current values. Dont change anything. -->	
<h1>Curriculum and Advisers</h1>

<div id="curriculumAndAdviser">

	<?php echo form_open('encoder/curriculumAndAdviser');?>
	
	<table>
		<tr>
			<td><?php echo form_label('Student Number: ');?></td>
			<td>
				<?php echo $stdno; ?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Curriculum: ', 'curriculum');?></td>
			<td>
				<?php
					$options = array(
								'2008' => '2008',
								'2011' => '2011',
							);
					
					echo form_dropdown('curriculum',$options,$current_curr);
				?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('Registration Adviser: ', 'reg_adviser');?></td>
			<td>
				<?php
					echo form_dropdown('reg_adviser',$inst_info,$curr_reg_adviser);
				?>
			</td>
		</tr>
		
		<tr>
			<td><?php echo form_label('SP Adviser: ', 'sp_adviser');?></td>
			<td>
				<?php
					echo form_dropdown('sp_adviser',$inst_info,$curr_sp_adviser);
				?>
			</td>
		</tr>
	</table>
</div>
	
<!-- Submit Button -->
<?php
	$data = array(
		'value' => 'Save',
	); 
	echo form_submit($data);
?>
<?php echo form_close(); ?>
	
<!-- Cancel Button -->
<?php 
	echo form_open('encoder/view');
		
	$data = array(
		'value' => 'Cancel',
	); 
	echo form_submit($data);
	echo form_close();
?>
<?php echo anchor('encoder/index','Back to Home Page');?> </br>
<?php echo anchor('encoder/logout','Logout');?>